package com.tool.demo.multiconn.common2;

import com.tool.demo.multiconn.method02.IVClient;
import com.tool.demo.multiconn.method02.impl.V1ClientImpl;
import com.tool.demo.multiconn.method02.impl.V2ClientImpl;

import java.util.ArrayList;
import java.util.List;

/**
 * <p></p>
 *
 * @author 
 * @date 2022/5/18
 */
public class TestA extends  MultiConnDeviceBase {

    protected List<Class<?>> listCapaClass = new ArrayList<Class<?>>();

    /*
     * Service Access Point (URL)
     */
    private String sap;

    protected String getSap() {
        return sap;
    }

    protected void setSap(String sap) {
        this.sap = sap;
    }

    public TestA(String sap){
        this.sap = sap;
        prepareDeviceCapability(sap);

    }

    protected void prepareDeviceCapability(String sap) {
        addServiceObjectMap(IVClient.class, new V1ClientImpl());
        addServiceObjectMap(IVClient.class, new V2ClientImpl());

        listCapaClass.add(IVClient.class);
    }

}
